package com.yixun.qfbao.apidto;

import com.yixun.qfbao.annotation.Constants;
import com.yixun.qfbao.annotation.TYWValid;
import com.yixun.qfbao.apidto.base.CommonReqDTO;

import java.io.Serializable;

/**
 * 角色授权资源列表请求参数
 * @author guifang.weng
 * @create 2017-11-22 16:35
 **/
public class GetAuthorizeRoleListReqDto extends CommonReqDTO implements Serializable {
    private static final long serialVersionUID = 5331379940770146213L;
    /**
     * 角色ID
     */
    @TYWValid(min = 1,max = 20,regModel = Constants.NUMBER)
    private Long roleId;
    /**
     * 角色来源
     */
    @TYWValid(min = 1,max = 1)
    private String resourcesOrigin;

    private Long merchantId;

    /**
     * 复用前的角色Id，用于复用权限
     */
    private Long oldRoleId;

    public Long getOldRoleId() {
        return oldRoleId;
    }

    public void setOldRoleId(Long oldRoleId) {
        this.oldRoleId = oldRoleId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getResourcesOrigin() {
        return resourcesOrigin;
    }

    public void setResourcesOrigin(String resourcesOrigin) {
        this.resourcesOrigin = resourcesOrigin;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }
}
